#ifndef __ERROR_INFO_H__
#define __ERROR_INFO_H__

#include <stdio.h>


#define OK 0
#define SESSION_OUT -1
#define ERR_GET_CURRENT_PATH -2

//socket error code
#define ERR_FUNC_SOCKET -101
#define ERR_FUNC_BIND -102
#define ERR_FUNC_LISTEN -103
#define ERR_FUNC_ACCEPT -104
#define ERR_FUNC_SEND -105
#define ERR_FUNC_RECV -106


//rtsp command error info
#define ERR_DESCRIBE_DATA_END -201
#define ERR_OPTIONS_DATA_END -211
#define ERR_SETUP_URL -221
#define ERR_PLAY_URL -231
#define ERR_PLAY_SESSION -232

//system error informtion
#define ERR_OPEN_CONFIG_FILE -301
#define ERR_CONFIG_NO_THIS_SECTION -302
#define ERR_CONFIG_NO_THIS_ITEM -303
#define ERR_OPEN_MSG_QUEUE -304
#define ERR_CLOSE_MSG_QUEUE -305
#define ERR_SEND_MSG_TO_QUEUE -306
#define ERR_RECV_MSG_FROM_QUEUE -306

typedef struct StruRtspStatusCode
{
	int iCode;
	char *pstrCodeDescription;
}RtspStatusCode,*pRtspStatusCode;

char* GetRtspStatusCodeDescription(int piCode);


#endif
